package com.teacher.service;

import com.teacher.common.CommonResult;
import com.teacher.pojo.dto.publicwelfareactivitiestask.PublicWelfareActivitiesTaskAddDto;
import com.teacher.pojo.dto.publicwelfareactivitiestask.PublicWelfareActivitiesTaskUpdateDto;
import com.teacher.pojo.entity.PublicWelfareActivitiesTask;
import com.baomidou.mybatisplus.extension.service.IService;
import com.teacher.pojo.vo.publicwelfareactivitiestask.PublicWelfareActivitiesTaskGetVo;

/**
 * <p>
 * 公益活动-一条0.5 服务类
 * </p>
 *
 * @author zfm
 * @since 2021-08-11
 */
public interface IPublicWelfareActivitiesTaskService extends IService<PublicWelfareActivitiesTask> {

    /**
     * 发起公益活动
     *
     * @param dto
     * @return
     */
    CommonResult<String> add(PublicWelfareActivitiesTaskAddDto dto);

    /**
     * 更新流程
     *
     * @param dto
     * @return
     */
    CommonResult<String> updateInfo(PublicWelfareActivitiesTaskUpdateDto dto);

    /**
     * 获取详情
     *
     * @param id
     * @return
     */
    CommonResult<PublicWelfareActivitiesTaskGetVo> getDetails(Long id);
}
